package cn.meng.base.mapper;

import cn.meng.base.vo.EmployeeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 员工信息mapper
 * @author 万梦辉
 */
@Repository
@Mapper
public interface EmployeeMapper {

    /**
     * 插入员工数据
     * @param employee
     * @return
     */
    Integer insertEmployee(EmployeeVo employee);

    /**
     * 批量插入员工数据
     * @param employees
     * @return
     */
    Integer batchInsertEmployee(@Param("employees") List<EmployeeVo> employees);

    Integer updateEmployeeNameByPk(String pk_employee,String name);

    EmployeeVo selectEmployeeByPK(String pk_employee);

}
